<?php
require_once 'application/models/AbstractModel.php';

class Exercice extends AbstractModel
{
    protected $_name = 'Exercice';
    
    protected $_referenceMap    = array(
        'Batterie' => array(
            'columns'           => 'batterie_id',
            'refTableClass'     => 'Batterie',
            'refColumns'        => 'id'
        )
    );
	
    function __construct() {
        parent::__construct();
    	$this->_fieldsToDisplay = array('id', 'batterie_id', 'type_id', 'description', 'reponse_complete', 'question', 'has_image', 'image_name', 'has_sound', 'sound_name');
    }
}
    	